package com.fit.model.combo.weekDays;

import org.hibernate.Session;

import com.fit.entities.weekdays.WeekDays;





public class WeekDaysEncoder {
	private Session session;

	public WeekDaysEncoder(Session session) {
		this.session = session;
	}

	public String toClient(Object arg0) {
		return ((WeekDays)arg0).getDayInWeek().toString();
	}
	public Object toValue(String arg0) {
		return session.load(WeekDays.class, new Long(arg0));
	}
}
